﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Xyz.Web.Admin.Flight.TimePicker
{
    public partial class TimePickerControl : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
        }

        public string GetTime
        {
            get
            {
                string time = lstHour.Text + ":" + lstmin.Text;
                return time;
            }
            set
            {
                try
                {
                    string mytime = value;

                    string[] times = mytime.Split(':');

                    lstHour.Text = Convert.ToInt32(times[0]).ToString("00");

                    lstmin.Text = Convert.ToInt32(times[1]).ToString("00");
                }

                catch { }
            }
        }
    }
}